var tahun=now.getFullYear() var hari=now.getDay() var bulan=now.getMonth() var tanggal=now.getDate() if (tanggal < 9) {tanggal=""+tanggal} var hariarray=new Array("Minggu","Senin","Selasa","Rabu","Kamis","Jum'at","Sabtu") var bulanarray=new Array("Januari","Pebruari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","Nopember","Desember") document.write(hariarray[hari]+", "+tanggal+" "+bulanarray[bulan]+" "+tahun+"
") now = new Date(); if (now.getTimezoneOffset() == 0) (a=now.getTime() + (7*60*60*1000)) else (a=now.getTime()); now.setTime(a); hr = now.getHours() ; am = ( hr > 11 ) ? "pm" : "am"; document.write("Pukul " + ((now.getHours() < 12) ? "" : "") + now.getHours() + ":" + ((now.getMinutes() < 10) ? "0" : "") + now.getMinutes() + ":" + ((now.getSeconds() < 10) ? "0" : "") + now.getSeconds() + ("")+(am)+(" WIB")) if ((bulanarray[bulan] == "Maret") && (tanggal == 13)) document.write("");